package com;

import com.comsumer.ComsumerService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import javax.annotation.Resource;

/**
 * Created by 石头哥哥 on 8/31/16.
 * PACKAGE_NAME:  com
 * COMMENT :
 */
@SpringBootApplication
public class DubboApplicationCumsumer {

    @Resource
    private ComsumerService comsumerService;


    /**
     * @param args
     */
    public static void main(String[] args) {
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(DubboApplicationCumsumer.class, args);
        DubboApplicationCumsumer dubboApplicationCumsumer = (DubboApplicationCumsumer) configurableApplicationContext.getBean("dubboApplicationCumsumer");
        dubboApplicationCumsumer.comsumerService.SayHello();
    }
}
